package com.ckk.eurekaclient.service;

import com.ckk.eurekaclient.pojo.Admin;
import com.ckk.eurekaclient.pojo.RespBean;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zhujunjun
 * @date 2021/05/21 11:27
 **/
public interface IAdminService {

    /**
     * 登录之后返回token
     * @param username
     * @param password
     * @param code
     * @param request
     * @return
     */
    RespBean login(String username, String password, String code, HttpServletRequest request);

    /**
     * 获取当前登录用户的信息
     * @param username
     * @return
     */
    Admin getAdminByUserName(String username);
}
